-- GENERATED SPELL FOR [Raging Dune Smasher] --


function spell0_5470(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_5470', 633, 1)
end

function Sorts_5470(pUnit, Event)
local choix_sorts_5470 = math.random(0, 0)
if choix_sorts_5470 == 0 then
pUnit:RegisterEvent('spell0_5470', 1, 1)
end
end

function mob5470_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5470', math.random(1500, 3000), 1)
end

function mob5470_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5470_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5470_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5470, 1, 'mob5470_Action')
RegisterUnitEvent(5470, 2, 'mob5470_Leave')
RegisterUnitEvent(5470, 3, 'mob5470_Kill')
RegisterUnitEvent(5470, 4, 'mob5470_Die')
